import { instance as request } from "../utils/request";
export const addProduct = (data: any) => {
  return request({
    url: "/addProduct",
    method: "post",
    data,
  });
};
export const getProductList = ({ data, params }: { data: any; params: any }) => {
  return request({
    url: "/getProductList",
    method: "post",
    data,
    params,
  });
};

export const getProduct = (data: any) => {
  return request({
    url: "/getProduct",
    method: "post",
    data,
  });
};
export const delProduct = (data: any) => {
  return request({
    url: "/delProduct",
    method: "post",
    data,
  });
};
export const putProduct = (data: any) => {
  return request({
    url: "/putProduct",
    method: "post",
    data,
  });
};
